package cn.classg.rabbitmq.mq;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.connection.CorrelationData;

public interface CallbackInterface<T> {

    void confirm(CorrelationData correlationData, boolean ack, String cause,T t);

    void returnedMessage(Message message, int replyCode, String replyText, String exchange, String routingKey);
}
